package br.edu.ufersa.scrumgame.mbean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import br.edu.ufersa.scrumgame.facade.JogadorFacade;
import br.edu.ufersa.scrumgame.modelo.Jogador;

@ManagedBean
@SessionScoped
public class UsuarioMBean {
	

	HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
	HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);

	@EJB
	private JogadorFacade jogadorFacade;

	private Jogador usuario = new Jogador();
	
	public Jogador getUsuario() {
		return usuario;
	}
	
	public void setUsuario(Jogador usuario) {
		this.usuario = usuario;
	}
	
	
	
	
}
